-- 朽弓锋目
local xiugongfengmu = fk.CreateSkill {
    name = "mcdh_xiugongfengmu",
    tags= {Skill.Compulsory}
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

xiugongfengmu:addEffect('filter',{
    card_filter = function(self, card, player)
        return player:hasSkill(self)  and card.suit == Card.Club
    end,
    view_as = function(self, card, player)
        local to = Fk:cloneCard("iron_chain", card.suit, card.number)
        to.skillName = self.name
        return to
    end
})

xiugongfengmu:addEffect(fk.CardUsing,{
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(self) and data.card.is_damage_card and target == player
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:recover({
            who = player,
            num = 1,
            recoverBy = player,
            skillName = self.name
        })
    end,
})

Fk:loadTranslationTable {
    ["mcdh_xiugongfengmu"] = "朽弓锋目",
    [":mcdh_xiugongfengmu"] = "锁定技，你的♣牌视为【铁索连环】；你使用伤害牌时，回复1点体力。",
}

return xiugongfengmu